À date, avec la version de pypot présente sur le depot officiel de poppy, il y a un bug sur la partie RemoteRobotServer/RemoteRobotClient. Ce bug est résolu sur le fork de mac-call.
In [ ]:
#imports and initialize virutal poppy using vrep
from pypot.vrep import from_vrep
from poppy.creatures import PoppyHumanoid
robot = PoppyHumanoid(simulator='vrep')
In [ ]:
#imports and initialize physical poppy
from poppy.creatures import PoppyHumanoid
robot = PoppyHumanoid()
In [ ]:
for m in robot.motors:
print("%s : %s" % (m.name, present_temperature))
utilise un objet RobotServer
In [ ]:
from pypot.server import RemoteRobotServer
In [ ]:
robot_server = RemoteRobotServer(robot,"0.0.0.0",4241)
In [ ]:
robot_server.run()